package com.base.cn.platform.os.controller.manage.group;

import com.base.cn.platform.os.common.controller.BaseController;
import com.base.cn.platform.os.entity.manage.function.SysFunction;
import com.base.cn.platform.os.entity.manage.group.SysGroupFunctionCondition;
import com.base.cn.platform.os.service.manage.group.SysGroupFunctionBiz;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 部门与权限关联的Controller
 *
 * @author s.li
 * @date 2019/02/13
 */
@RestController
@RequestMapping("/manage")
@Slf4j
public class SysGroupFunctionController extends BaseController {

    @Autowired
    private SysGroupFunctionBiz sysGroupFunctionBiz;

    /**
     * 查询部门编辑页面显示的权限
     * @param condition 查询条件
     * @return 权限数据
     */
    @RequestMapping("/findShowGroupFunctionList")
    public List<SysFunction> findShowGroupFunctionList(@RequestBody SysGroupFunctionCondition condition){
        return sysGroupFunctionBiz.findShowGroupFunctionList(condition);
    }

}
